# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=font-fira
pkgver=4.202
pkgrel=0
pkgdesc="Mozilla's new typeface OTF, used in Firefox OS"
url="http://mozilla.github.io/Fira/"
arch="noarch"
license="OFL-1.1"
options="!check" # no test suite
depends="$pkgname-otf"
subpackages="$pkgname-otf $pkgname-ttf"
source="$pkgname-$pkgver.tar.gz::https://github.com/mozilla/Fira/archive/$pkgver.tar.gz"
builddir="$srcdir/Fira-$pkgver"

package() {
	mkdir -p "$pkgdir"
}

otf() {
	depends="fontconfig"

	install -Dm644 $builddir/otf/*.otf -t "$subpkgdir"/usr/share/fonts/OTF
}

ttf() {
	pkgdesc="$pkgdesc (TTF version)"
	depends="fontconfig"

	install -Dm644 $builddir/ttf/*.ttf -t "$subpkgdir"/usr/share/fonts/TTF
}
sha512sums="
fec770fa038f2aa0654f9382f95aa1266a2655970f4c7755b237af9d1c09f47ce719f8daf3afc39812fc69448b9481ee0e2a1414f1d007ad70b4254c92950ebb  font-fira-4.202.tar.gz
"
